package singleton.ehanshi;

/**
 * @Author： yu.Tan
 * @Date: 2020/10/9 10:18
 * @Description: 饿汉式
 */
public class Singleton {
    private static Singleton singleton=new Singleton();
    private Singleton(){}

    public static Singleton getInstance(){
        return singleton;
    }
}
